\(\int (3+b \sin (e+f x))^2 (c+d \sin (e+f x))^{3/2} \, dx\) [731]

   Optimal result
   Rubi [A] (verified)
   Mathematica [A] (verified)
   Maple [B] (verified)
   Fricas [C] (verification not implemented)
   Sympy [F]
   Maxima [F]
   Giac [F]
   Mupad [F(-1)]

Optimal result

Integrand size = 27, antiderivative size = 333 \[ \int (3+b \sin (e+f x))^2 (c+d \sin (e+f x))^{3/2} \, dx=-\frac {2 \left (-6 b c (b c-21 d)+5 \left (63+5 b^2\right ) d^2\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{105 d f}+\frac {4 b (b c-21 d) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{35 d f}-\frac {2 b^2 \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{7 d f}+\frac {4 \left (630 c d^2+63 b d \left (c^2+3 d^2\right )-b^2 \left (3 c^3-41 c d^2\right )\right ) E\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {c+d \sin (e+f x)}}{105 d^2 f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}-\frac {2 \left (c^2-d^2\right ) \left (126 b c d+315 d^2-b^2 \left (6 c^2-25 d^2\right )\right ) \operatorname {EllipticF}\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right ),\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{105 d^2 f \sqrt {c+d \sin (e+f x)}} \]

[Out]

4/35*b*(-7*a*d+b*c)*cos(f*x+e)*(c+d*sin(f*x+e))^(3/2)/d/f-2/7*b^2*cos(f*x+e)*(c+d*sin(f*x+e))^(5/2)/d/f-2/105*
(5*(7*a^2+5*b^2)*d^2-6*b*c*(-7*a*d+b*c))*cos(f*x+e)*(c+d*sin(f*x+e))^(1/2)/d/f-4/105*(70*a^2*c*d^2+21*a*b*d*(c
^2+3*d^2)-b^2*(3*c^3-41*c*d^2))*(sin(1/2*e+1/4*Pi+1/2*f*x)^2)^(1/2)/sin(1/2*e+1/4*Pi+1/2*f*x)*EllipticE(cos(1/
2*e+1/4*Pi+1/2*f*x),2^(1/2)*(d/(c+d))^(1/2))*(c+d*sin(f*x+e))^(1/2)/d^2/f/((c+d*sin(f*x+e))/(c+d))^(1/2)+2/105
*(c^2-d^2)*(42*a*b*c*d+35*a^2*d^2-b^2*(6*c^2-25*d^2))*(sin(1/2*e+1/4*Pi+1/2*f*x)^2)^(1/2)/sin(1/2*e+1/4*Pi+1/2
*f*x)*EllipticF(cos(1/2*e+1/4*Pi+1/2*f*x),2^(1/2)*(d/(c+d))^(1/2))*((c+d*sin(f*x+e))/(c+d))^(1/2)/d^2/f/(c+d*s
in(f*x+e))^(1/2)

Rubi [A] (verified)

Time = 0.43 (sec) , antiderivative size = 347, normalized size of antiderivative = 1.04, number of steps used = 8, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.259, Rules used = {2870, 2832, 2831, 2742, 2740, 2734, 2732} \[ \int (3+b \sin (e+f x))^2 (c+d \sin (e+f x))^{3/2} \, dx=-\frac {2 \left (c^2-d^2\right ) \left (35 a^2 d^2+42 a b c d-\left (b^2 \left (6 c^2-25 d^2\right )\right )\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}} \operatorname {EllipticF}\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right ),\frac {2 d}{c+d}\right )}{105 d^2 f \sqrt {c+d \sin (e+f x)}}+\frac {4 \left (70 a^2 c d^2+21 a b d \left (c^2+3 d^2\right )-\left (b^2 \left (3 c^3-41 c d^2\right )\right )\right ) \sqrt {c+d \sin (e+f x)} E\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 d}{c+d}\right )}{105 d^2 f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}-\frac {2 \left (5 d^2 \left (7 a^2+5 b^2\right )-6 b c (b c-7 a d)\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{105 d f}+\frac {4 b (b c-7 a d) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{35 d f}-\frac {2 b^2 \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{7 d f} \]

[In]

Int[(a + b*Sin[e + f*x])^2*(c + d*Sin[e + f*x])^(3/2),x]

[Out]

(-2*(5*(7*a^2 + 5*b^2)*d^2 - 6*b*c*(b*c - 7*a*d))*Cos[e + f*x]*Sqrt[c + d*Sin[e + f*x]])/(105*d*f) + (4*b*(b*c
 - 7*a*d)*Cos[e + f*x]*(c + d*Sin[e + f*x])^(3/2))/(35*d*f) - (2*b^2*Cos[e + f*x]*(c + d*Sin[e + f*x])^(5/2))/
(7*d*f) + (4*(70*a^2*c*d^2 + 21*a*b*d*(c^2 + 3*d^2) - b^2*(3*c^3 - 41*c*d^2))*EllipticE[(e - Pi/2 + f*x)/2, (2
*d)/(c + d)]*Sqrt[c + d*Sin[e + f*x]])/(105*d^2*f*Sqrt[(c + d*Sin[e + f*x])/(c + d)]) - (2*(c^2 - d^2)*(42*a*b
*c*d + 35*a^2*d^2 - b^2*(6*c^2 - 25*d^2))*EllipticF[(e - Pi/2 + f*x)/2, (2*d)/(c + d)]*Sqrt[(c + d*Sin[e + f*x
])/(c + d)])/(105*d^2*f*Sqrt[c + d*Sin[e + f*x]])

Rule 2732

Int[Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[2*(Sqrt[a + b]/d)*EllipticE[(1/2)*(c - Pi/2
+ d*x), 2*(b/(a + b))], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 - b^2, 0] && GtQ[a + b, 0]

Rule 2734

Int[Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Dist[Sqrt[a + b*Sin[c + d*x]]/Sqrt[(a + b*Sin[c +
 d*x])/(a + b)], Int[Sqrt[a/(a + b) + (b/(a + b))*Sin[c + d*x]], x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 -
 b^2, 0] &&  !GtQ[a + b, 0]

Rule 2740

Int[1/Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Simp[(2/(d*Sqrt[a + b]))*EllipticF[(1/2)*(c - P
i/2 + d*x), 2*(b/(a + b))], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a^2 - b^2, 0] && GtQ[a + b, 0]

Rule 2742

Int[1/Sqrt[(a_) + (b_.)*sin[(c_.) + (d_.)*(x_)]], x_Symbol] :> Dist[Sqrt[(a + b*Sin[c + d*x])/(a + b)]/Sqrt[a
+ b*Sin[c + d*x]], Int[1/Sqrt[a/(a + b) + (b/(a + b))*Sin[c + d*x]], x], x] /; FreeQ[{a, b, c, d}, x] && NeQ[a
^2 - b^2, 0] &&  !GtQ[a + b, 0]

Rule 2831

Int[((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])/Sqrt[(a_) + (b_.)*sin[(e_.) + (f_.)*(x_)]], x_Symbol] :> Dist[(b*c
 - a*d)/b, Int[1/Sqrt[a + b*Sin[e + f*x]], x], x] + Dist[d/b, Int[Sqrt[a + b*Sin[e + f*x]], x], x] /; FreeQ[{a
, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0]

Rule 2832

Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Simp[(-d
)*Cos[e + f*x]*((a + b*Sin[e + f*x])^m/(f*(m + 1))), x] + Dist[1/(m + 1), Int[(a + b*Sin[e + f*x])^(m - 1)*Sim
p[b*d*m + a*c*(m + 1) + (a*d*m + b*c*(m + 1))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c, d, e, f}, x] && NeQ[
b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && GtQ[m, 0] && IntegerQ[2*m]

Rule 2870

Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_.) + (d_.)*sin[(e_.) + (f_.)*(x_)])^2, x_Symbol] :> Simp[(
-d^2)*Cos[e + f*x]*((a + b*Sin[e + f*x])^(m + 1)/(b*f*(m + 2))), x] + Dist[1/(b*(m + 2)), Int[(a + b*Sin[e + f
*x])^m*Simp[b*(d^2*(m + 1) + c^2*(m + 2)) - d*(a*d - 2*b*c*(m + 2))*Sin[e + f*x], x], x], x] /; FreeQ[{a, b, c
, d, e, f, m}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] &&  !LtQ[m, -1]

Rubi steps \begin{align*} \text {integral}& = -\frac {2 b^2 \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{7 d f}+\frac {2 \int (c+d \sin (e+f x))^{3/2} \left (\frac {1}{2} \left (7 a^2+5 b^2\right ) d-b (b c-7 a d) \sin (e+f x)\right ) \, dx}{7 d} \\ & = \frac {4 b (b c-7 a d) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{35 d f}-\frac {2 b^2 \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{7 d f}+\frac {4 \int \sqrt {c+d \sin (e+f x)} \left (\frac {1}{4} d \left (35 a^2 c+19 b^2 c+42 a b d\right )+\frac {1}{4} \left (5 \left (7 a^2+5 b^2\right ) d^2-6 b c (b c-7 a d)\right ) \sin (e+f x)\right ) \, dx}{35 d} \\ & = -\frac {2 \left (5 \left (7 a^2+5 b^2\right ) d^2-6 b c (b c-7 a d)\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{105 d f}+\frac {4 b (b c-7 a d) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{35 d f}-\frac {2 b^2 \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{7 d f}+\frac {8 \int \frac {\frac {1}{8} d \left (168 a b c d+35 a^2 \left (3 c^2+d^2\right )+b^2 \left (51 c^2+25 d^2\right )\right )+\frac {1}{4} \left (70 a^2 c d^2+21 a b d \left (c^2+3 d^2\right )-b^2 \left (3 c^3-41 c d^2\right )\right ) \sin (e+f x)}{\sqrt {c+d \sin (e+f x)}} \, dx}{105 d} \\ & = -\frac {2 \left (5 \left (7 a^2+5 b^2\right ) d^2-6 b c (b c-7 a d)\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{105 d f}+\frac {4 b (b c-7 a d) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{35 d f}-\frac {2 b^2 \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{7 d f}-\frac {\left (\left (c^2-d^2\right ) \left (42 a b c d+35 a^2 d^2-b^2 \left (6 c^2-25 d^2\right )\right )\right ) \int \frac {1}{\sqrt {c+d \sin (e+f x)}} \, dx}{105 d^2}+\frac {\left (2 \left (70 a^2 c d^2+21 a b d \left (c^2+3 d^2\right )-b^2 \left (3 c^3-41 c d^2\right )\right )\right ) \int \sqrt {c+d \sin (e+f x)} \, dx}{105 d^2} \\ & = -\frac {2 \left (5 \left (7 a^2+5 b^2\right ) d^2-6 b c (b c-7 a d)\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{105 d f}+\frac {4 b (b c-7 a d) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{35 d f}-\frac {2 b^2 \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{7 d f}+\frac {\left (2 \left (70 a^2 c d^2+21 a b d \left (c^2+3 d^2\right )-b^2 \left (3 c^3-41 c d^2\right )\right ) \sqrt {c+d \sin (e+f x)}\right ) \int \sqrt {\frac {c}{c+d}+\frac {d \sin (e+f x)}{c+d}} \, dx}{105 d^2 \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}-\frac {\left (\left (c^2-d^2\right ) \left (42 a b c d+35 a^2 d^2-b^2 \left (6 c^2-25 d^2\right )\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}\right ) \int \frac {1}{\sqrt {\frac {c}{c+d}+\frac {d \sin (e+f x)}{c+d}}} \, dx}{105 d^2 \sqrt {c+d \sin (e+f x)}} \\ & = -\frac {2 \left (5 \left (7 a^2+5 b^2\right ) d^2-6 b c (b c-7 a d)\right ) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{105 d f}+\frac {4 b (b c-7 a d) \cos (e+f x) (c+d \sin (e+f x))^{3/2}}{35 d f}-\frac {2 b^2 \cos (e+f x) (c+d \sin (e+f x))^{5/2}}{7 d f}+\frac {4 \left (70 a^2 c d^2+21 a b d \left (c^2+3 d^2\right )-b^2 \left (3 c^3-41 c d^2\right )\right ) E\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {c+d \sin (e+f x)}}{105 d^2 f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}-\frac {2 \left (c^2-d^2\right ) \left (42 a b c d+35 a^2 d^2-b^2 \left (6 c^2-25 d^2\right )\right ) \operatorname {EllipticF}\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right ),\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{105 d^2 f \sqrt {c+d \sin (e+f x)}} \\ \end{align*}

Mathematica [A] (verified)

Time = 2.36 (sec) , antiderivative size = 276, normalized size of antiderivative = 0.83 \[ \int (3+b \sin (e+f x))^2 (c+d \sin (e+f x))^{3/2} \, dx=\frac {4 \left (-d^2 \left (\left (945+51 b^2\right ) c^2+504 b c d+5 \left (63+5 b^2\right ) d^2\right ) \operatorname {EllipticF}\left (\frac {1}{4} (-2 e+\pi -2 f x),\frac {2 d}{c+d}\right )+2 \left (-630 c d^2-63 b d \left (c^2+3 d^2\right )+b^2 \left (3 c^3-41 c d^2\right )\right ) \left ((c+d) E\left (\frac {1}{4} (-2 e+\pi -2 f x)|\frac {2 d}{c+d}\right )-c \operatorname {EllipticF}\left (\frac {1}{4} (-2 e+\pi -2 f x),\frac {2 d}{c+d}\right )\right )\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}-d (c+d \sin (e+f x)) \left (\left (1008 b c d+1260 d^2+b^2 \left (12 c^2+115 d^2\right )\right ) \cos (e+f x)+3 b d (-5 b d \cos (3 (e+f x))+4 (4 b c+21 d) \sin (2 (e+f x)))\right )}{210 d^2 f \sqrt {c+d \sin (e+f x)}} \]

[In]

Integrate[(3 + b*Sin[e + f*x])^2*(c + d*Sin[e + f*x])^(3/2),x]

[Out]

(4*(-(d^2*((945 + 51*b^2)*c^2 + 504*b*c*d + 5*(63 + 5*b^2)*d^2)*EllipticF[(-2*e + Pi - 2*f*x)/4, (2*d)/(c + d)
]) + 2*(-630*c*d^2 - 63*b*d*(c^2 + 3*d^2) + b^2*(3*c^3 - 41*c*d^2))*((c + d)*EllipticE[(-2*e + Pi - 2*f*x)/4,
(2*d)/(c + d)] - c*EllipticF[(-2*e + Pi - 2*f*x)/4, (2*d)/(c + d)]))*Sqrt[(c + d*Sin[e + f*x])/(c + d)] - d*(c
 + d*Sin[e + f*x])*((1008*b*c*d + 1260*d^2 + b^2*(12*c^2 + 115*d^2))*Cos[e + f*x] + 3*b*d*(-5*b*d*Cos[3*(e + f
*x)] + 4*(4*b*c + 21*d)*Sin[2*(e + f*x)])))/(210*d^2*f*Sqrt[c + d*Sin[e + f*x]])

Maple [B] (verified)

Leaf count of result is larger than twice the leaf count of optimal. \(1574\) vs. \(2(389)=778\).

Time = 13.22 (sec) , antiderivative size = 1575, normalized size of antiderivative = 4.73

method result size
default \(\text {Expression too large to display}\) \(1575\)
parts \(\text {Expression too large to display}\) \(2397\)

[In]

int((a+b*sin(f*x+e))^2*(c+d*sin(f*x+e))^(3/2),x,method=_RETURNVERBOSE)

[Out]

(-(-d*sin(f*x+e)-c)*cos(f*x+e)^2)^(1/2)*(2*a^2*c^2*(c/d-1)*((c+d*sin(f*x+e))/(c-d))^(1/2)*(d*(1-sin(f*x+e))/(c
+d))^(1/2)*(1/(c-d)*(-sin(f*x+e)-1)*d)^(1/2)/(-(-d*sin(f*x+e)-c)*cos(f*x+e)^2)^(1/2)*EllipticF(((c+d*sin(f*x+e
))/(c-d))^(1/2),((c-d)/(c+d))^(1/2))+d^2*b^2*(-2/7/d*sin(f*x+e)^2*(-(-d*sin(f*x+e)-c)*cos(f*x+e)^2)^(1/2)+12/3
5*c/d^2*sin(f*x+e)*(-(-d*sin(f*x+e)-c)*cos(f*x+e)^2)^(1/2)-2/3*(5/7+24/35*c^2/d^2)/d*(-(-d*sin(f*x+e)-c)*cos(f
*x+e)^2)^(1/2)+2*(-4/35*c^2/d^2+5/21)*(c/d-1)*((c+d*sin(f*x+e))/(c-d))^(1/2)*(d*(1-sin(f*x+e))/(c+d))^(1/2)*(1
/(c-d)*(-sin(f*x+e)-1)*d)^(1/2)/(-(-d*sin(f*x+e)-c)*cos(f*x+e)^2)^(1/2)*EllipticF(((c+d*sin(f*x+e))/(c-d))^(1/
2),((c-d)/(c+d))^(1/2))+2/105*(-48*c^3-44*c*d^2)/d^3*(c/d-1)*((c+d*sin(f*x+e))/(c-d))^(1/2)*(d*(1-sin(f*x+e))/
(c+d))^(1/2)*(1/(c-d)*(-sin(f*x+e)-1)*d)^(1/2)/(-(-d*sin(f*x+e)-c)*cos(f*x+e)^2)^(1/2)*((-c/d-1)*EllipticE(((c
+d*sin(f*x+e))/(c-d))^(1/2),((c-d)/(c+d))^(1/2))+EllipticF(((c+d*sin(f*x+e))/(c-d))^(1/2),((c-d)/(c+d))^(1/2))
))+(2*a*b*d^2+2*b^2*c*d)*(-2/5/d*sin(f*x+e)*(-(-d*sin(f*x+e)-c)*cos(f*x+e)^2)^(1/2)+8/15*c/d^2*(-(-d*sin(f*x+e
)-c)*cos(f*x+e)^2)^(1/2)+4/15*c/d*(c/d-1)*((c+d*sin(f*x+e))/(c-d))^(1/2)*(d*(1-sin(f*x+e))/(c+d))^(1/2)*(1/(c-
d)*(-sin(f*x+e)-1)*d)^(1/2)/(-(-d*sin(f*x+e)-c)*cos(f*x+e)^2)^(1/2)*EllipticF(((c+d*sin(f*x+e))/(c-d))^(1/2),(
(c-d)/(c+d))^(1/2))+2*(3/5+8/15*c^2/d^2)*(c/d-1)*((c+d*sin(f*x+e))/(c-d))^(1/2)*(d*(1-sin(f*x+e))/(c+d))^(1/2)
*(1/(c-d)*(-sin(f*x+e)-1)*d)^(1/2)/(-(-d*sin(f*x+e)-c)*cos(f*x+e)^2)^(1/2)*((-c/d-1)*EllipticE(((c+d*sin(f*x+e
))/(c-d))^(1/2),((c-d)/(c+d))^(1/2))+EllipticF(((c+d*sin(f*x+e))/(c-d))^(1/2),((c-d)/(c+d))^(1/2))))+2*(2*a^2*
c*d+2*a*b*c^2)*(c/d-1)*((c+d*sin(f*x+e))/(c-d))^(1/2)*(d*(1-sin(f*x+e))/(c+d))^(1/2)*(1/(c-d)*(-sin(f*x+e)-1)*
d)^(1/2)/(-(-d*sin(f*x+e)-c)*cos(f*x+e)^2)^(1/2)*((-c/d-1)*EllipticE(((c+d*sin(f*x+e))/(c-d))^(1/2),((c-d)/(c+
d))^(1/2))+EllipticF(((c+d*sin(f*x+e))/(c-d))^(1/2),((c-d)/(c+d))^(1/2)))+(a^2*d^2+4*a*b*c*d+b^2*c^2)*(-2/3/d*
(-(-d*sin(f*x+e)-c)*cos(f*x+e)^2)^(1/2)+2/3*(c/d-1)*((c+d*sin(f*x+e))/(c-d))^(1/2)*(d*(1-sin(f*x+e))/(c+d))^(1
/2)*(1/(c-d)*(-sin(f*x+e)-1)*d)^(1/2)/(-(-d*sin(f*x+e)-c)*cos(f*x+e)^2)^(1/2)*EllipticF(((c+d*sin(f*x+e))/(c-d
))^(1/2),((c-d)/(c+d))^(1/2))-4/3*c/d*(c/d-1)*((c+d*sin(f*x+e))/(c-d))^(1/2)*(d*(1-sin(f*x+e))/(c+d))^(1/2)*(1
/(c-d)*(-sin(f*x+e)-1)*d)^(1/2)/(-(-d*sin(f*x+e)-c)*cos(f*x+e)^2)^(1/2)*((-c/d-1)*EllipticE(((c+d*sin(f*x+e))/
(c-d))^(1/2),((c-d)/(c+d))^(1/2))+EllipticF(((c+d*sin(f*x+e))/(c-d))^(1/2),((c-d)/(c+d))^(1/2)))))/cos(f*x+e)/
(c+d*sin(f*x+e))^(1/2)/f

Fricas [C] (verification not implemented)

Result contains higher order function than in optimal. Order 9 vs. order 4.

Time = 0.14 (sec) , antiderivative size = 671, normalized size of antiderivative = 2.02 \[ \int (3+b \sin (e+f x))^2 (c+d \sin (e+f x))^{3/2} \, dx=\frac {\sqrt {2} {\left (12 \, b^{2} c^{4} - 84 \, a b c^{3} d + 252 \, a b c d^{3} + {\left (35 \, a^{2} - 11 \, b^{2}\right )} c^{2} d^{2} + 15 \, {\left (7 \, a^{2} + 5 \, b^{2}\right )} d^{4}\right )} \sqrt {i \, d} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (8 i \, c^{3} - 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) - 3 i \, d \sin \left (f x + e\right ) - 2 i \, c}{3 \, d}\right ) + \sqrt {2} {\left (12 \, b^{2} c^{4} - 84 \, a b c^{3} d + 252 \, a b c d^{3} + {\left (35 \, a^{2} - 11 \, b^{2}\right )} c^{2} d^{2} + 15 \, {\left (7 \, a^{2} + 5 \, b^{2}\right )} d^{4}\right )} \sqrt {-i \, d} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (-8 i \, c^{3} + 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) + 3 i \, d \sin \left (f x + e\right ) + 2 i \, c}{3 \, d}\right ) - 6 \, \sqrt {2} {\left (-3 i \, b^{2} c^{3} d + 21 i \, a b c^{2} d^{2} + 63 i \, a b d^{4} + i \, {\left (70 \, a^{2} + 41 \, b^{2}\right )} c d^{3}\right )} \sqrt {i \, d} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (8 i \, c^{3} - 9 i \, c d^{2}\right )}}{27 \, d^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (8 i \, c^{3} - 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) - 3 i \, d \sin \left (f x + e\right ) - 2 i \, c}{3 \, d}\right )\right ) - 6 \, \sqrt {2} {\left (3 i \, b^{2} c^{3} d - 21 i \, a b c^{2} d^{2} - 63 i \, a b d^{4} - i \, {\left (70 \, a^{2} + 41 \, b^{2}\right )} c d^{3}\right )} \sqrt {-i \, d} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (-8 i \, c^{3} + 9 i \, c d^{2}\right )}}{27 \, d^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (-8 i \, c^{3} + 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) + 3 i \, d \sin \left (f x + e\right ) + 2 i \, c}{3 \, d}\right )\right ) + 6 \, {\left (15 \, b^{2} d^{4} \cos \left (f x + e\right )^{3} - 6 \, {\left (4 \, b^{2} c d^{3} + 7 \, a b d^{4}\right )} \cos \left (f x + e\right ) \sin \left (f x + e\right ) - {\left (3 \, b^{2} c^{2} d^{2} + 84 \, a b c d^{3} + 5 \, {\left (7 \, a^{2} + 8 \, b^{2}\right )} d^{4}\right )} \cos \left (f x + e\right )\right )} \sqrt {d \sin \left (f x + e\right ) + c}}{315 \, d^{3} f} \]

[In]

integrate((a+b*sin(f*x+e))^2*(c+d*sin(f*x+e))^(3/2),x, algorithm="fricas")

[Out]

1/315*(sqrt(2)*(12*b^2*c^4 - 84*a*b*c^3*d + 252*a*b*c*d^3 + (35*a^2 - 11*b^2)*c^2*d^2 + 15*(7*a^2 + 5*b^2)*d^4
)*sqrt(I*d)*weierstrassPInverse(-4/3*(4*c^2 - 3*d^2)/d^2, -8/27*(8*I*c^3 - 9*I*c*d^2)/d^3, 1/3*(3*d*cos(f*x +
e) - 3*I*d*sin(f*x + e) - 2*I*c)/d) + sqrt(2)*(12*b^2*c^4 - 84*a*b*c^3*d + 252*a*b*c*d^3 + (35*a^2 - 11*b^2)*c
^2*d^2 + 15*(7*a^2 + 5*b^2)*d^4)*sqrt(-I*d)*weierstrassPInverse(-4/3*(4*c^2 - 3*d^2)/d^2, -8/27*(-8*I*c^3 + 9*
I*c*d^2)/d^3, 1/3*(3*d*cos(f*x + e) + 3*I*d*sin(f*x + e) + 2*I*c)/d) - 6*sqrt(2)*(-3*I*b^2*c^3*d + 21*I*a*b*c^
2*d^2 + 63*I*a*b*d^4 + I*(70*a^2 + 41*b^2)*c*d^3)*sqrt(I*d)*weierstrassZeta(-4/3*(4*c^2 - 3*d^2)/d^2, -8/27*(8
*I*c^3 - 9*I*c*d^2)/d^3, weierstrassPInverse(-4/3*(4*c^2 - 3*d^2)/d^2, -8/27*(8*I*c^3 - 9*I*c*d^2)/d^3, 1/3*(3
*d*cos(f*x + e) - 3*I*d*sin(f*x + e) - 2*I*c)/d)) - 6*sqrt(2)*(3*I*b^2*c^3*d - 21*I*a*b*c^2*d^2 - 63*I*a*b*d^4
 - I*(70*a^2 + 41*b^2)*c*d^3)*sqrt(-I*d)*weierstrassZeta(-4/3*(4*c^2 - 3*d^2)/d^2, -8/27*(-8*I*c^3 + 9*I*c*d^2
)/d^3, weierstrassPInverse(-4/3*(4*c^2 - 3*d^2)/d^2, -8/27*(-8*I*c^3 + 9*I*c*d^2)/d^3, 1/3*(3*d*cos(f*x + e) +
 3*I*d*sin(f*x + e) + 2*I*c)/d)) + 6*(15*b^2*d^4*cos(f*x + e)^3 - 6*(4*b^2*c*d^3 + 7*a*b*d^4)*cos(f*x + e)*sin
(f*x + e) - (3*b^2*c^2*d^2 + 84*a*b*c*d^3 + 5*(7*a^2 + 8*b^2)*d^4)*cos(f*x + e))*sqrt(d*sin(f*x + e) + c))/(d^
3*f)

Sympy [F]

\[ \int (3+b \sin (e+f x))^2 (c+d \sin (e+f x))^{3/2} \, dx=\int \left (a + b \sin {\left (e + f x \right )}\right )^{2} \left (c + d \sin {\left (e + f x \right )}\right )^{\frac {3}{2}}\, dx \]

[In]

integrate((a+b*sin(f*x+e))**2*(c+d*sin(f*x+e))**(3/2),x)

[Out]

Integral((a + b*sin(e + f*x))**2*(c + d*sin(e + f*x))**(3/2), x)

Maxima [F]

\[ \int (3+b \sin (e+f x))^2 (c+d \sin (e+f x))^{3/2} \, dx=\int { {\left (b \sin \left (f x + e\right ) + a\right )}^{2} {\left (d \sin \left (f x + e\right ) + c\right )}^{\frac {3}{2}} \,d x } \]

[In]

integrate((a+b*sin(f*x+e))^2*(c+d*sin(f*x+e))^(3/2),x, algorithm="maxima")

[Out]

integrate((b*sin(f*x + e) + a)^2*(d*sin(f*x + e) + c)^(3/2), x)

Giac [F]

\[ \int (3+b \sin (e+f x))^2 (c+d \sin (e+f x))^{3/2} \, dx=\int { {\left (b \sin \left (f x + e\right ) + a\right )}^{2} {\left (d \sin \left (f x + e\right ) + c\right )}^{\frac {3}{2}} \,d x } \]

[In]

integrate((a+b*sin(f*x+e))^2*(c+d*sin(f*x+e))^(3/2),x, algorithm="giac")

[Out]

integrate((b*sin(f*x + e) + a)^2*(d*sin(f*x + e) + c)^(3/2), x)

Mupad [F(-1)]

Timed out. \[ \int (3+b \sin (e+f x))^2 (c+d \sin (e+f x))^{3/2} \, dx=\int {\left (a+b\,\sin \left (e+f\,x\right )\right )}^2\,{\left (c+d\,\sin \left (e+f\,x\right )\right )}^{3/2} \,d x \]

[In]

int((a + b*sin(e + f*x))^2*(c + d*sin(e + f*x))^(3/2),x)

[Out]

int((a + b*sin(e + f*x))^2*(c + d*sin(e + f*x))^(3/2), x)